package com.jymj.entity.data;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ${lc} on 2020/11/26. 巡查報表參數
 */
public class PatrolEntity implements Serializable {
    private String[] codes;//村codes
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startdate;//开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date enddate;//结束时间
    private Integer[] hjzzyjs;//一级分类
    private Integer[] hjzzrjs;//二级分类
    private Integer[] hjzzsjs;//三级分类
    private int limit;
    private int page;
    private int offset;


    public int getOffset() {
        return (page - 1) * limit;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String[] getCodes() {
        return codes;
    }

    public void setCodes(String[] codes) {
        this.codes = codes;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public Integer[] getHjzzyjs() {
        return hjzzyjs;
    }

    public void setHjzzyjs(Integer[] hjzzyjs) {
        this.hjzzyjs = hjzzyjs;
    }

    public Integer[] getHjzzrjs() {
        return hjzzrjs;
    }

    public void setHjzzrjs(Integer[] hjzzrjs) {
        this.hjzzrjs = hjzzrjs;
    }

    public Integer[] getHjzzsjs() {
        return hjzzsjs;
    }

    public void setHjzzsjs(Integer[] hjzzsjs) {
        this.hjzzsjs = hjzzsjs;
    }

}
